PYTHON-5555 Fix AWS Lambda build#2540
Merged
blink1073 merged 9 commits intomongodb:masterfrom Sep 17, 2025
Merged
Conversation
Member
Did you find the full trackback of the |
Member
|
Found in your patch: It seems the task has installed dnspython 2.7.0: But the AWS Function ends up using a later version of dnspython that has already dropped support for 3.9: Whereas dnspython 2.7.0 looks like this: https://github.com/rthalley/dnspython/blob/v2.7.0/dns/exception.py#L51 |
Member
Author
|
Thanks for tracking that down! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updated to use Python 3.10, which solved a dns resolve error on lambda.
I did not find the root cause, but since 3.9 is EOL next month I left it at this solution.
I also updated the errors raised by srv_resolver to include the original error, which was useful in debugging the problem.
Passing build: https://spruce.mongodb.com/task/mongo_python_driver_faas_lambda_test_aws_lambda_deployed_patch_eca38b730b8227c52cd5f0c655f617e969743ee1_68c9e481e31406000770e31e_25_09_16_22_28_25/logs?execution=0